package com.example.springbootzk.bean;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/3/21 16:54
 */
@Component
public class ZKClientConf {
    // /zzz/A/A_1 1
    // /zzz/A/A_2 1,2
    // /zzz/A/A_3 1,2,3

    private String confPath = "/zzz";
    private String interval = "5";
    private ConcurrentHashMap<String, ModeConf> confMode = new ConcurrentHashMap<>();

    private ConcurrentHashMap<String, String> userMode = new ConcurrentHashMap<>();

    private ConcurrentHashMap<String, List<String>> UserType = new ConcurrentHashMap<>();

    public String getConfPath() {
        return confPath;
    }

    public void setConfPath(String confPath) {
        this.confPath = confPath;
    }

    public String getInterval() {
        return interval;
    }

    public void setInterval(String interval) {
        this.interval = interval;
    }

    public ConcurrentHashMap<String, ModeConf> getConfMode() {
        return confMode;
    }

    public void setConfMode(ConcurrentHashMap<String, ModeConf> confMode) {
        this.confMode = confMode;
    }

    public ConcurrentHashMap<String, String> getUserMode() {
        return userMode;
    }

    public void setUserMode(ConcurrentHashMap<String, String> userMode) {
        this.userMode = userMode;
    }

    public ConcurrentHashMap<String, List<String>> getUserType() {
        return UserType;
    }

    public void setUserType(ConcurrentHashMap<String, List<String>> userType) {
        UserType = userType;
    }
}
